<template>
	<el-descriptions :column="3" border>
		<el-descriptions-item label="项目编码">{{ message?.base?.appCode }}</el-descriptions-item>
		<el-descriptions-item label="数字化应用名称">{{ message?.base?.appName }}</el-descriptions-item>
		<el-descriptions-item label="联系人">{{ message?.base?.principalName }}</el-descriptions-item>
		<el-descriptions-item label="联系电话">{{ message?.base?.principalPhone }}</el-descriptions-item>
		<el-descriptions-item label="应用开发类型">{{ dictionary.projectType(message?.base?.projectType) }}</el-descriptions-item>
		<el-descriptions-item label="应用预算年度">{{ message?.base?.budgetYear }}</el-descriptions-item>
		<el-descriptions-item label="应用开发起始时间">{{ message?.base?.developBeginDate }}</el-descriptions-item>
		<el-descriptions-item label="应用开发终止时间">{{ message?.base?.developEndDate }}</el-descriptions-item>
		<el-descriptions-item label="应用领域">{{ message?.base?.domain }}</el-descriptions-item>
		<el-descriptions-item label="应用开发状态" v-if="message?.logStatus">
			<span style="color: #fc5a55">
				{{ dictionary.logStatus(message?.logStatus, message) }}
			</span>
		</el-descriptions-item>
		<el-descriptions-item label="应用年度预算（万元）">{{ message?.base?.yearBudget }}</el-descriptions-item>
		<el-descriptions-item label="应用发布端">{{ dictionary.terminal(message?.base?.terminal) }}</el-descriptions-item>
		<el-descriptions-item label="应用总投资（万元）">{{ message?.base?.totalBudget }}</el-descriptions-item>
	</el-descriptions>
</template>

<script lang="ts" setup>
import { toRefs, defineProps } from 'vue';
import dictionary from './dictionary.js';
import { APP_DOMAIN } from '/@/views/areaDigitalApp/dictionary';

const props = defineProps({
	message: Object,
});

const { message } = toRefs(props);
</script>

<style lang="scss" scoped>
.unit {
	display: flex;
	flex-wrap: wrap;
	.item_box {
		width: 32%;
		margin: 5px 0px;
		.item_name {
			color: #999999;
		}
	}
}
:deep(.el-descriptions__label) {
	width: 15% !important;
}
</style>
